Cut Points in PEG

نویسنده

  • Roman R. Redziejowski
چکیده

This is a short note inspired by some ideas and results from [3,6–8]. It is about Parsing Expression Grammars (PEGs) introduced by Ford in [1]. PEG specifies a language by defining for it a parser with limited backtracking. All of the quoted papers contain a detailed introduction to PEG, so it is not repeated here. Backtracking means that if e1 in a choice expression e1/e2 fails, the parser returns to the position it had before the attempt at e1, and tries e2 on the same input. Limited backtracking means that once e1 succeeded, e2 will not be tried on the same input upon a subsequent failure. In some cases, a failure of e1 may mean that e2 is also bound to fail, so there is no need to try it; one can terminate e1/e2 straight away and return failure. As an example, consider this grammar:

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Determination of Obesity Indices Cut-Off Points for Predicting Metabolic Syndrome in Inactive College Students

Objective: The present this study aimed to determine the proper cut-off points for waist circumference (WC), Waist to height ratio (WHtR) and body mass index (BMI) for early predicting of metabolic syndrome among inactive college students. Materials and Methods: In this cross-sectional study, 126 males (age 20.33±1.71) and 63 females (age 20.36±1.72) with inactive lifestyle parti...

متن کامل

تغییرات شیوع اضافه‌ وزن در کودکان و نوجوانان تهرانی: مقایسه سه تعریف مختلف

    Background & Aim: There are so far few comparisons of the prevalence of obesity according to the type of definitions and, therefore, more reports are required to show the diversity of obesity patterns across countries with different economic development and cultural background. The objective of the present study was to assess the prevalence and trends in overweight among Iranian children an...

متن کامل

The effect of different single ports on performance in single-incision laparoscopic surgery

Aims: In the rapidly advancing world of laparoendoscopic surgery, surgeons are faced with new devices all of which are aimed towards a single access. Various single-access devices are available on the market. Our study aimed to compare the performance of experienced laparoscopic surgeons on validated laparoscopic tasks using five devices within a simulation setting. Methods: Ten experienced con...

متن کامل

تعیین شیوع و نقطه‌ برش کمبود ویتامین D در دانش‌آموزان مدارس راهنمایی اراک 1388

Background and Aim: Vitamin D has a basic role in bone development and metabolism. Regarding high prevalence of vitamin D deficiency in Iran, we aimed to investigate its point prevalence in Arak, Iran and determine a cut-off point for vitamin D deficiency in the region. Materials and Methods: In a cross-sectional study,420 adolescents (220 girls, 200 boys) aged 10-16 years old were selected usi...

متن کامل

مقایسه‌ی اثرات نانومیله‏های اکسید آهن با پوشش‌های اوره و پلی‌اتیلن گلیکول بر زیست‌پذیری فیبروبلاست موش

Background and Objective: Currently, as an important trace element, is increasingly used in drug delivery, hyperthermia and diagnosis and treatment of cancer. The main objective of this study was to determine the cytotoxicity effects of nanostructure iron oxide and to implement the findings for its safe applications. Materials and Methods: Urea coated iron oxide nanorods were modified with fet...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Fundam. Inform.

دوره 143  شماره 

صفحات  -

تاریخ انتشار 2014